<?php

use think\migration\Migrator;
use think\migration\db\Column;

class SeckillAddJutuike extends Migrator
{
    public function up()
    {

        if (!in_array(env('APP_ENV'),['local','test'])){
            echo '非测试环境'.PHP_EOL;
            return true;
        }

        \app\model\BaseSupplier::findOrCreate([
            'code' =>'jutuike',
            'serv_type' =>PRODUCT_SECKILL_SERV,
            'api_config' => '{"apikey":"RPFXiLSND5xcDyb57uJvT0XcgJmyfEWi","pubId":"24022"}', //非公司的
            'name' => '聚推客渠道美团秒杀'
        ]);
    }

    public function down()
    {

    }
}
